package cn.jingyuan.swan.cloud.oauth2;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * Details for an OAuth2-protected resource
 */
@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "swan.oauth2.client")
public class DefaultOAuth2ResourceDetails {

    /** 认证服务器地址 */
    private String authServerAddress;

    //------ Configuration properties for OAuth2 Resources ------//

    /** OAuth2 client ID */
    private String clientId;

    /** OAuth2 client secret */
    private String clientSecret;

    /** 对客户端自动授权的 scope */
    private String scope;

    /** 获取 access token 的 URI */
    private String accessTokenUri;

    /** 用户跳转去获取 access token 的 URI */
    private String userAuthorizationUri;

    /** 解码 token 的 URI */
    private String tokenInfoUri;

    /** 获取用户信息的URI */
    private String userInfoUri;

}
